/*
 * @FilePath: /flutter_cart/lib/routers/routers.dart
 * @Author: Yongchao Wang
 * @Date: 2020-12-05 14:48:30
 * @LastEditors: Yongchao Wang
 * @LastEditTime: 2020-12-05 22:29:41
 */
import 'package:flutter/material.dart';
import 'package:fluro/fluro.dart';
import './router_handler.dart';

class Routes {
  static String root = '/';
  static String detailsPage = '/detail';
  static void configureRoutes(FluroRouter router) {
    router.notFoundHandler = new Handler(
        // ignore: missing_return
        handlerFunc: (BuildContext context, Map<String, dynamic> params) {
      print('error');
    });
    router.define(detailsPage, handler: detailsHandler);
  }
}
